package com.day0009;

public class Employee {

    private String name;
    private String workId;
    private String depart;//部门

    public Employee() {
    }

    public Employee(String name, String workId, String depart) {
        this.name = name;
        this.workId = workId;
        this.depart = depart;
    }

    public void showMsg(){
        System.out.println("部门:"+depart+"名字:"+name+"工号:"+workId);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }
}
